package cn.com.yusys.yusp.admin.Utils;

import io.swagger.annotations.ApiModelProperty;

/**
 * 返回给前端UI通用对象
 *
 * @author
 * @since
 * @param <T>
 */
public class Result<T> {
    /**
     * 返回消息
     */
    @ApiModelProperty(value = "返回消息", required = true)
    private String message;

    /**
     * 返回代码
     */
    @ApiModelProperty(value = "返回代码", required = true)
    private String code;

    /**
     * 时间戳
     */
    @ApiModelProperty(value = "时间戳", required = true)
    private String timestamp;

    /**
     * 结果对象
     */
    @ApiModelProperty(value = "结果对象", required = true)
    private T Data;

    /**
     * 返回错误信息
     */
    @ApiModelProperty(value = "返回错误详细", required = true)
    private String detail;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    public T getData() {
        return Data;
    }

    public void setData(T data) {
        Data = data;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }
}
